/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.businesslogic.linecalc;

import cn.ekuma.epos.businesslogic.SerivceUtil;

import com.openbravo.bean.shard.I_CalcLine;
import com.openbravo.bean.shard.I_LineCalcLogic;

/**
 *
 * @author Administrator
 */
public class ServingLineCalcLogic implements I_LineCalcLogic{
        public double getMultiply(I_CalcLine l) {
            if(l.getEndData()!=null)
                return l.getMultiply();
            return  SerivceUtil.calcSubDays(l.getRantCycleStyle(),l.getStartData(),l.getEndData());
        }
}
